package com.baizhi.utils.spring;

import com.baizhi.utils.spring.bean.Male;
import org.junit.Test;
import org.springframework.beans.BeanUtils;

public class BeanUtilsTest {

    @Test
    public void test1() {
        Male male = new Male(1L, "张三", 20);
        // 对象拷贝
        Male target = new Male();
        BeanUtils.copyProperties(male, target);
        System.out.println(target);
    }
}
